package com.transaction.simulate.service.impl;

import com.transaction.simulate.mapper.InterFaceMapper;
import com.transaction.simulate.model.dto.Interface;
import com.transaction.simulate.service.InterfaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 接口
 * @Title:
 * @author: dy.yin 2021/8/20 11:31
 */
@Service
public class InterfaceServiceImpl implements InterfaceService {

    @Autowired
    private InterFaceMapper interFaceMapper;

    @Override
    public List<Interface> selectInterfaceByCode(String interfaceCode) {
        return interFaceMapper.selectInterfaceByCode(interfaceCode);
    }

    @Override
    public List<Map<String, String>> selectInterfaceMapByCode(String interfaceCode) {
        return interFaceMapper.selectInterfaceMapByCode(interfaceCode);
    }
}
